package com.ysd.servlet;

import java.io.IOException;
import java.util.ArrayList;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ysd.entity.News;
import com.ysd.service.newsService;

/**
 * Servlet implementation class article_list_contentServlet
 */
@WebServlet("/article_list_contentServlet")
public class article_list_contentServlet extends HttpServlet {

	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		String contentId=req.getParameter("contentId");
		ArrayList<News> newcontent=newsService.getnewscontent(contentId);
		req.setAttribute("newcontent", newcontent);
		req.getRequestDispatcher("article_list_content.jsp").forward(req, resp);
	}

}
